﻿using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ESAM_Assignment_3
{
    public partial class Administration : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
			if ((bool)Session[Common.ESAM_LOGIN] == false)
			{
				Response.Redirect("Default.aspx");
			}
			else if ((bool)Session[Common.ESAM_ADMIN] == false)
			{
				Response.Redirect("Default.aspx");
			}
        }

        protected void btnError_Click(object sender, EventArgs e)
        {
            int zero = 0;
            Response.Write(10 / zero);
        }
    }
}